package edu.hrbu.spring.bean;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author 徐登宇
 */
public class HumanFactoryBean implements FactoryBean<Human> {
    @Override
    public Human getObject() throws Exception {
        // 依然是我们自己对bean进行实例化
        return new Human();
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
